package com.ima.web.service;

import java.util.List;

import com.ima.web.beans.db.Categories;
import com.ima.web.beans.db.Users;
import com.ima.web.beans.form.CategoriesForm;

public interface CategoriesService {
	
	List<Categories> getForProcessing();
	List<Categories> getApprovedBy(Users user);
	List<Categories> getApprovedBy(int id);
	List<Categories> getApprovedBy(String username);
	List<Categories> getList(Categories criteria);
	
	Categories getById(int id);
	Categories getByName(String category);
	
	List<Categories> getApproved();
	
	void insert(Categories data);
	void insert(CategoriesForm formData);
	void approve(int categoriesId,boolean isApproved);
	void approve(CategoriesForm formData);
	void approve(Categories category, boolean isApproved);
}
